home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1998 August / PC Plus SuperCD 50a Issue 142 (CD142a) (August 1998).iso / handson / supercede / Knowodys / Projects / mq_projects.exe / MindQ_Projects / Syntax / DefaultValues / hoeDefaultValues.txt next >
Encoding:
Text File  |  1997-08-13  |  1.0 KB  |  25 lines

  1. Launch a Java development environment from your desktop 
  2. or select it from the task bar if it is already running. 
  3. Then follow the instructions below.  
  4.  
  5. Step 1:  Imagine that you are a teacher with three 
  6. students. Write a Java application that prints a grade 
  7. report for your three students' performance on three 
  8. tests. Use a two-dimensional array of doubles to hold the
  9. grades and a one-dimensional array of Strings to hold the
  10. students' names. Call this application source file 
  11. Grades.java.
  12.   
  13. Step 2:  Compile this file using javac, and run the 
  14. resulting Grades.class file using the java command.
  15.  
  16. Step 3:  Write a Java applet that will print the default
  17.  values of int short, byte, long, char, double, float, 
  18. and boolean variables to the applet window. Call this 
  19. applet source file DefaultValues.java.
  20.  
  21. Step 4:  Compile this file and write HTML code that will
  22.  embed the applet in a web browser or appletviewer.
  23.  
  24. Step 5:  Load the HTML file into a web browser or 
  25. appletviewer to see the applet run.